package com.whfc.wxmp.api.safety.service.impl;

import com.whfc.safety.dto.SafetyIssueDTO;
import com.whfc.safety.dto.SafetyIssueTypeDTO;
import com.whfc.safety.service.SafetyIssueService;
import com.whfc.wxmp.api.safety.service.WxSafetyIssueService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClasssName WxSafetyIssueServiceImpl
 * @Description 质量问题类型实现类
 * @Author hw
 * @Date 2020/8/4 18:41
 * @Version 1.0
 */
@Service
public class WxSafetyIssueServiceImpl implements WxSafetyIssueService {

    @DubboReference(interfaceClass = SafetyIssueService.class, version = "1.0.0")
    private SafetyIssueService safetyIssueService;

    @Override
    public List<SafetyIssueTypeDTO> issueTypeList(Integer deptId) {
        return safetyIssueService.issueTypeList(deptId, "");
    }

    @Override
    public List<SafetyIssueDTO> issueList(Long issueTypeId) {
        return safetyIssueService.issueList(issueTypeId);
    }

    @Override
    public List<SafetyIssueDTO> issueHistoryList(Integer deptId, Integer pageSize) {
        return safetyIssueService.issueHistoryList(deptId, pageSize);
    }
}
